home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 2000
/
MacHack 2000.toast
/
pc
/
The Hacks
/
SimpleTrap
/
Read Me
Wrap
Text File
|
2000-06-23
|
640b
|
22 lines
SimpleTrap
SimpleText in a trap
MacHack 2000
Ned Holbrook
ned@mac.com
For years I've been seeing Cocoa (née OpenStep) demonstrations where bright-eyed,
enthusiastic demonstrators shouted, "Write SimpleText in 50 lines of code!"
I've decided to do Cocoa one better: SimpleTrap is SimpleText in a single trap.
Install the SimpleTrap extension on any Macintosh and trap 0xABCD will launch SimpleText,
or bring it to the foreground if it's already running.
Disclaimers:
SimpleTrap uses Jens Alfke's SignatureToApp sample code, and I do not presume to have
any rights to that code. All other code is mine, but may be used freely. Enjoy!